package api

import (
	"github.com/gin-gonic/gin"
	"pay/api/handler"
)

func Router(r *gin.Engine) {
	api := r.Group("api")
	{
		user := api.Group("user")
		{
			user.POST("login", handler.Login)
			user.POST("register", handler.Register)
			user.GET("list", handler.List)
			user.POST("listWhere", handler.ListWhere)
		}
	}
}
